package com.community.dto;

import com.community.pojo.PurchaseOrder;
import com.community.pojo.PurchaseOrderDetails;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MakePurchaseDto {

    /**
     * 商品id
     */
    private Integer productId;
    /**
     *采购明细数量
     */
    private Integer count;
    /**
     *商品单价
     */
    private Float price;
    /**
     * 该商品总价
     */
    private Float subtotal;
    /**
     * 供应商id
     */
    private Integer supplierId;
    /**
     * 登记人
     */
    private String register;
    /**
     * 登记时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date registerTime;
    /**
     * 支付方式
     */
    private String payMethod;
}
